
local CLASS = {}

CLASS.DisplayName			= "Default Class"
CLASS.WalkSpeed 			= 125
CLASS.CrouchedWalkSpeed 	= 80
CLASS.RunSpeed				= 125
CLASS.DuckSpeed				= 0.4
CLASS.JumpPower				= 300
CLASS.DrawTeamRing			= false
CLASS.CanUseFlashlight		= false
CLASS.TeammateNoCollide		= true

function CLASS:Loadout( pl )

end

function CLASS:OnSpawn( pl )

end

function CLASS:OnDeath( ply )

	if ( ply.HoldingItem and ply.HoldingItem:IsValid() and ply.HoldingItem:GetOwner() == ply ) then
		
		local object = ply.HoldingItem
		if (object and object:IsValid()) then
			object:SetCollisionGroup( COLLISION_GROUP_NONE )
		end

		ply.HoldingItem:SetOwner( NULL )
		ply.HoldingItem:GetPhysicsObject():Wake()
		ply.HoldingItem = nil	
		umsg.Start( "PlyIsHolding" )
			umsg.Entity( ply )
			umsg.Entity( nil )
		umsg.End()
			
	end

end

player_class.Register( "Default", CLASS )